package com.atzzy.ysmall.ysmall_api.OtherController;

import com.alibaba.dubbo.config.annotation.Reference;
import com.atzzy.ysmall.ysmall_allService.IndexService.IndexImgService;
import com.atzzy.ysmall.ysmall_common.vo.R;
import org.springframework.web.bind.annotation.*;

/**
 * @Author JAVAZeng
 * @Date 2022/3/1 22:27
 * @Version 1.0
 */
@RestController
@RequestMapping("indexService")
@CrossOrigin
public class OtherServiceController {
    @Reference
    private IndexImgService indexImgService;

    //首页轮播图接口
    @GetMapping("indeximg")
    public R listIndexImgs() {
        return indexImgService.listIndexImgs();
    }

}
